home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Draw / Sources / OvalShp.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  1.6 KB  |  64 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                OvalShp.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef OVALSHP_H
  13. #define OVALSHP_H
  14.  
  15. #ifndef CONSTANT_H
  16. #include "Constant.h"
  17. #endif
  18.  
  19. #ifndef BASESHP_H
  20. #include "BaseShp.h"
  21. #endif
  22.  
  23. #ifndef BOUNDSHP_H
  24. #include "BoundShp.h"
  25. #endif
  26.  
  27. // ----- Foundation Layer -----
  28.  
  29. #ifndef FWRUNTYP_H
  30. #include "FWRunTyp.h"
  31. #endif
  32.  
  33. //========================================================================================
  34. // class COvalShape
  35. //========================================================================================
  36.  
  37. class COvalShape : public CBoundedShape
  38. {
  39. public:
  40.     FW_DECLARE_CLASS
  41.     FW_DECLARE_AUTO(COvalShape)
  42.  
  43. public:
  44.     COvalShape();
  45.     COvalShape(FW_CReadableStream& archive);
  46.     virtual ~COvalShape();
  47.         
  48.     // ----- Selection
  49.     virtual FW_Boolean    HitTest(Environment *ev, FW_CGraphicContext& gc, const FW_CMouseEvent& theMouseEvent) const;
  50.     virtual void        RenderShape(Environment* ev, ODFacet* facet, FW_CGraphicContext& gc);
  51.     
  52.     // ----- Shape -----
  53.     virtual void        GetClipRegion(Environment* ev, ODShape* clipRegion);
  54.     virtual ODShape*    CreateShapeOutline(Environment *ev);
  55.  
  56.     // ----- Archiving -----
  57.     static void*         Read(FW_CReadableStream& stream, FW_ClassTypeConstant type);
  58.  
  59. private:
  60.     virtual void        OutlineShape(FW_CGraphicContext& gc, const FW_CInk& ink, const FW_CStyle& style, const FW_CRect& rect);
  61. };
  62.  
  63. #endif
  64.